import axios from 'axios'
import { getHeader } from "@/app.config"

export function getKpi(type) {
  let url = process.env.VUE_APP_KANBAN_HOST + '/api/devops/dept/kpi?type=' + type
  //let data
  return axios.get(url, {headers: getHeader()})
}

export function getKpi2(type) {
  let url = process.env.VUE_APP_KANBAN_HOST + '/api/base/kpi-avg?module_name=' + type
  return axios.get(url, {headers: getHeader()})
}

export function getEntry() {
  let url = `${process.env.VUE_APP_KANBAN_HOST}/api/account/user_permission`
  return axios.get(url, {headers: getHeader()})
} 